package entities;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * PROJECT_NAME BroadCastReciver_01 Created by ZM on 2015/9/8 0008 20:55.
 */
public class SongEntity implements Parcelable {

	/**
	 * queryId : 64563148 songId : 64563148 songName : 趁早 artistId : 68153647
	 * artistName : 李琦 albumId : 64548663 albumName : 中国好声音第二季 第1期 songPicSmall:
	 * http://c.hiphotos.baidu.com/ting/pic/item/
	 * b8389b504fc2d562cc71decce51190ef76c66c91.jpg
	 * 
	 * songPicBig :http://a.hiphotos.baidu
	 * .com/ting/pic/item/37d12f2eb9389b500886ee738735e5dde7116e91.jpg
	 * 
	 * songPicRadio : http://a.hiphotos.baidu.com/ting/pic/item/
	 * cdbf6c81800a19d8d32c8a2431fa828ba61e46e7.jpg lrcLink
	 * :/data2/lrc/64586422/64586422.lrc version : copyType : 1 time : 197
	 * linkCode : 22000 songLink :http://zhangmenshiting.baidu.
	 * com/data2/music/134378197 /64563148100800.mp3?
	 * xcode=a2cd555bdd851054878a5546ba115fb8309abd2b9f5b6d72 showLink
	 * :http://zhangmenshiting
	 * .baidu.com/data2/music/134378197/64563148100800.mp3?
	 * xcode=a2cd555bdd851054878a5546ba115fb8309abd2b9f5b6d72 format : mp3 rate:
	 * 128 size : 3158428 relateStatus : 0 resourceType : 0
	 */

	public String queryId;
	public int songId;
	public String songName;
	public String artistId;
	public String artistName;
	public int albumId;
	public String albumName;
	public String songPicSmall;
	public String songPicBig;
	public String songPicRadio;
	public String lrcLink;
	public String version;
	public int copyType;
	public int time;
	public int linkCode;
	public String songLink;
	public String showLink;
	public String format;
	public int rate;
	public int size;
	public String relateStatus;
	public String resourceType;

	public SongEntity() {

	}

	public int getAlbumId() {
		return albumId;
	}

	public void setAlbumId(int albumId) {
		this.albumId = albumId;
	}

	public String getAlbumName() {
		return albumName;
	}

	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}

	public String getArtistId() {
		return artistId;
	}

	public void setArtistId(String artistId) {
		this.artistId = artistId;
	}

	public String getArtistName() {
		return artistName;
	}

	public void setArtistName(String artistName) {
		this.artistName = artistName;
	}

	public int getCopyType() {
		return copyType;
	}

	public void setCopyType(int copyType) {
		this.copyType = copyType;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public int getLinkCode() {
		return linkCode;
	}

	public void setLinkCode(int linkCode) {
		this.linkCode = linkCode;
	}

	public String getLrcLink() {
		return lrcLink;
	}

	public void setLrcLink(String lrcLink) {
		this.lrcLink = lrcLink;
	}

	public String getQueryId() {
		return queryId;
	}

	public void setQueryId(String queryId) {
		this.queryId = queryId;
	}

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}

	public String getRelateStatus() {
		return relateStatus;
	}

	public void setRelateStatus(String relateStatus) {
		this.relateStatus = relateStatus;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getShowLink() {
		return showLink;
	}

	public void setShowLink(String showLink) {
		this.showLink = showLink;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getSongId() {
		return songId;
	}

	public void setSongId(int songId) {
		this.songId = songId;
	}

	public String getSongLink() {
		return songLink;
	}

	public void setSongLink(String songLink) {
		this.songLink = songLink;
	}

	public String getSongName() {
		return songName;
	}

	public void setSongName(String songName) {
		this.songName = songName;
	}

	public String getSongPicBig() {
		return songPicBig;
	}

	public void setSongPicBig(String songPicBig) {
		this.songPicBig = songPicBig;
	}

	public String getSongPicRadio() {
		return songPicRadio;
	}

	public void setSongPicRadio(String songPicRadio) {
		this.songPicRadio = songPicRadio;
	}

	public String getSongPicSmall() {
		return songPicSmall;
	}

	public void setSongPicSmall(String songPicSmall) {
		this.songPicSmall = songPicSmall;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@Override
	public String toString() {
		return "SongEntity [queryId=" + queryId + ", songId=" + songId
				+ ", songName=" + songName + ", artistId=" + artistId
				+ ", artistName=" + artistName + ", albumId=" + albumId
				+ ", albumName=" + albumName + ", songPicSmall=" + songPicSmall
				+ ", songPicBig=" + songPicBig + ", songPicRadio="
				+ songPicRadio + ", lrcLink=" + lrcLink + ", version="
				+ version + ", copyType=" + copyType + ", time=" + time
				+ ", linkCode=" + linkCode + ", songLink=" + songLink
				+ ", showLink=" + showLink + ", format=" + format + ", rate="
				+ rate + ", size=" + size + ", relateStatus=" + relateStatus
				+ ", resourceType=" + resourceType + "]";
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeInt(songId);
		dest.writeString(songName);
		dest.writeString(artistName);
		dest.writeString(albumName);
		dest.writeString(songPicSmall);
		dest.writeString(songPicBig);
		dest.writeString(songLink);
		dest.writeInt(time);
	}

	private SongEntity(Parcel source) {
		songId = source.readInt();
		songName = source.readString();
		artistName = source.readString();
		albumName = source.readString();
		songPicSmall = source.readString();
		songPicBig = source.readString();
		songLink = source.readString();
		time = source.readInt();
	}

	public static final Parcelable.Creator<SongEntity> CREATOR = new Parcelable.Creator<SongEntity>() {

		@Override
		public SongEntity createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new SongEntity(source);
		}

		@Override
		public SongEntity[] newArray(int size) {
			// TODO Auto-generated method stub
			return new SongEntity[size];
		}
	};
}
